Skip to content

Review my code <3#271

Open
young-the-tiny wants to merge 4 commits into
the-csharp-academy:mainfrom
young-the-tiny:main
Open

Review my code <3#271
young-the-tiny wants to merge 4 commits into
the-csharp-academy:mainfrom
young-the-tiny:main

Conversation

@young-the-tiny

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 24, 2026 09:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new Coding Tracker .NET console application that stores coding sessions in SQLite (via Dapper) and provides an interactive Spectre.Console UI for CRUD operations, a live stopwatch session, and basic reporting.

Changes:

  • Added a Spectre.Console-driven menu UI for viewing/adding/updating/deleting sessions, running a live session, and generating summary reports.
  • Implemented configuration loading from appsettings.json and a Dapper/SQLite data access layer.
  • Added project scaffolding and documentation (README.md, DOCS.md), plus solution/project files and default configuration.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
CodingTracker/UI/UserInterface.cs Adds the interactive menu UI, live session stopwatch, reporting, and input helpers.
CodingTracker/Database/DatabaseManager.cs Adds SQLite schema init and CRUD operations via Dapper.
CodingTracker/Config/AppConfig.cs Loads connection string/date format from appsettings.json at startup.
CodingTracker/Models/CodingSession.cs Defines the session model with computed Duration.
CodingTracker/Program.cs Adds the app entry point: init DB then run UI.
CodingTracker/appsettings.json Provides default connection string, DB path, and date format.
CodingTracker/CodingTracker.csproj Adds .NET project configuration and package references.
CodingTracker/CodingTracker.slnx Adds a solution container referencing the project.
CodingTracker/README.md Documents features, requirements, running, configuration, and layout.
CodingTracker/DOCS.md Provides a detailed explanation of architecture and data flow.
.gitignore Ignores .claude.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CodingTracker/UI/UserInterface.cs Outdated
Comment on lines +89 to +103
var start = DateTime.Now;
AnsiConsole.MarkupLine($"[green]Session started at {start.ToString(AppConfig.DateFormat)}.[/] Press any key to stop...");

AnsiConsole.Live(new Markup(""))
.Start(ctx =>
{
while (!Console.KeyAvailable)
{
ctx.UpdateTarget(new Markup($"Time: [yellow]{FormatDuration(DateTime.Now - start)}[/]"));
ctx.Refresh();
Thread.Sleep(1000);
}
});
Console.ReadKey(true);

Comment on lines +19 to +24
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

</ItemGroup>
young-the-tiny and others added 3 commits June 24, 2026 16:11
@TheCSharpAcademy

TheCSharpAcademy commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

@young-the-tiny Project approved! 😄✅ And well done for completing the challenges! Great job adding the live stopwatch feature and a reports section with totals for all time, this week, and this month. Those are strong extras.

🥋And congratulations! You got your olive green belt!! 🟩🟩

Feedback
🔍️Your Readme is excellent. It tells everything about your app. There's one thing missing though. I can't see a word written by yourself. It's ok to write technical documentation with AI but who's the human behind it? I need to see more of your own thought processes while developing the app. Not only it helps consolidate what you've learned but also it gives a human touch to your work in an age where everything is written by AI.

🔍️It's time to start adding unit/integration testing to your apps. You seem to have a good foundation of coding but in real life nothing significant gets built without proper automated testing. The earlier you learn to test your apps the better. You can see an intro article with a video tutorial here.

☕If you like our roadmap, please consider buying as a coffee. We appreciate your help 🙂

✋🏻Looking forward to seeing your next projects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants